/* 全局注册组件 */

import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import "./index.css"

import fButton from '../../../src/components/f-button/index.vue';
import fTable from '../../../src/components/f-table/index.vue';
import fTableColum from '../../../src/components/f-table/f-table-colum/index.vue';
import fSwitch from '../../../src/components/f-switch/index.vue';
import fDialog from '../../../src/components/f-dialog/index.vue';

export default {
    extends: DefaultTheme,
    enhanceApp({ app }) {
        // 注册自定义全局组件
        app.component('fButton', fButton)
        app.component('fTable', fTable)
        app.component('fTableColum', fTableColum)
        app.component('fSwitch', fSwitch)
        app.component('fDialog', fDialog)
    }
} satisfies Theme